import { http } from "@/utils/http";

export interface TaskCard {
  index: number;
  type: number;
  banner: string;
  name: string;
  description: string;
  isSetup: boolean;
}

/** 卡片列表 */
export const getCardList = (data?: object) => {
  return http.request<ApiResultPage<TaskCard>>("get", "/get-card-list", {
    data
  });
};

export const getCardInfo = (data: { index: number }) => {
  return http.request<ApiResult<TaskCard>>("get", "/get-card-info", { data });
};
